GetTimeBaseTime
Your application can use theGetTimeBaseTime
function to obtain the current time value from a time base. You can specify the time scale in which to return the time value.
pascal TimeValue GetTimeBaseTime (TimeBase tb, TimeScale s, TimeRecord *tr);
tb
- Specifies the time base for this operation. Your application obtains this time base identifier from the
NewTimeBase
function (described on page 2-297).s
- Specifies the time scale in which to return the current time value. Set this parameter to 0 to retrieve the time in the preferred time scale of the time base.
tr
- Contains a pointer to a time structure that is to receive the current time value. This is an optional parameter. If you do not want the time value represented in a time structure, set this parameter to
nil
.DESCRIPTION
TheGetTimeBaseTime
function returns a time value that contains the current time from the specified time base in the specified time scale. The function returns this value even if you specify a time structure with thetr
parameter.ERROR CODES
NoneSEE ALSO
You can set the current time of a time base by calling either theSetTimeBaseTime
orSetTimeBaseValue
functions, which are described on page 2-304 and page 2-305, respectively.